import { getEnumBase } from '@Untils'
export const fileType = () => {
  return [
    {
      label: '文件夹',
      value: 0,
      color: '#007799',
    },
    {
      label: '图片',
      value: 1,
      color: '#ff0000',
    },
    {
      label: '视频',
      value: 3,
      color: '#ff0000',
    },
    {
      label: '文本',
      value: 2,
      color: '#ff0000',
    },
    {
      label: '其他',
      value: 4,
      color: '#ff0000',
    },
  ]
}

export let getOneFileType = (_filter) => {
  let list = fileType()
  return getEnumBase(list, _filter)
}

export const fileTypeDataStaus = () => {
  return [
    {
      label: '正常',
      value: 0,
      color: '#007799',
    },
    {
      label: '回收站',
      value: -1,
      color: '#ff0000',
    },
  ]
}
